var Mock = require('mockjs');

exports.response = function (req, res) {
    return Mock.mock({
        "code": 0,
        "msg": "OK",
        "data": {
            "fieldList": [{
                "id": "code",
                "name": "股票代码"
            },
            {
                "id": "name",
                "name": "股票简称"
            },
            {
                "id": "days",
                "name": "持仓天数"
            },
            {
                "id": "weight",
                "name": "平均持股权重"
            },
            {
                "id": "ratio",
                "name": "收益贡献占比"
            }],
            "list|5": [{
                "id|+1":"@float(1, 1000, 0,0)",
                "code": "600000-CN",
                "name": "浦发银行",
                "days": 270,
                "weight": 0.1178,
                "ratio": 6.33
            }]
        }
    })
}